import 'osc_soft.dart';

class OscCompanySoftListEntity {
	int code;
	OscCompanySoftListData data;
	String message;

	OscCompanySoftListEntity({this.code, this.data, this.message});

	OscCompanySoftListEntity.fromJson(Map<String, dynamic> json) {
		code = json['code'];
		data = json['data'] != null ? new OscCompanySoftListData.fromJson(json['data']) : null;
		message = json['message'];
	}

	Map<String, dynamic> toJson() {
		final Map<String, dynamic> data = new Map<String, dynamic>();
		data['code'] = this.code;
		if (this.data != null) {
      data['data'] = this.data.toJson();
    }
		data['message'] = this.message;
		return data;
	}
}

class OscCompanySoftListData {
	OscCompany company;
	OscCompanySoftList results;

	OscCompanySoftListData({this.company, this.results});

	OscCompanySoftListData.fromJson(Map<String, dynamic> json) {
		company = json['company'] != null ? new OscCompany.fromJson(json['company']) : null;
		results = json['results'] != null ? new OscCompanySoftList.fromJson(json['results']) : null;
	}

	Map<String, dynamic> toJson() {
		final Map<String, dynamic> data = new Map<String, dynamic>();
		if (this.company != null) {
      data['company'] = this.company.toJson();
    }
		if (this.results != null) {
      data['results'] = this.results.toJson();
    }
		return data;
	}
}

class OscCompany {
	int projectCount;
	String ident;
	String name;
	String logo;
	int id;

	OscCompany({this.projectCount, this.ident, this.name, this.logo, this.id});

	OscCompany.fromJson(Map<String, dynamic> json) {
		projectCount = json['projectCount'];
		ident = json['ident'];
		name = json['name'];
		logo = json['logo'];
		id = json['id'];
	}

	Map<String, dynamic> toJson() {
		final Map<String, dynamic> data = new Map<String, dynamic>();
		data['projectCount'] = this.projectCount;
		data['ident'] = this.ident;
		data['name'] = this.name;
		data['logo'] = this.logo;
		data['id'] = this.id;
		return data;
	}
}

class OscCompanySoftList {
	List<OscSoft> items;
	int currentSize;

	OscCompanySoftList({this.items, this.currentSize});

	OscCompanySoftList.fromJson(Map<String, dynamic> json) {
		if (json['items'] != null) {
			items = new List<OscSoft>();(json['items'] as List).forEach((v) { items.add(new OscSoft.fromJson(v)); });
		}
		currentSize = json['currentSize'];
	}

	Map<String, dynamic> toJson() {
		final Map<String, dynamic> data = new Map<String, dynamic>();
		if (this.items != null) {
      data['items'] =  this.items.map((v) => v.toJson()).toList();
    }
		data['currentSize'] = this.currentSize;
		return data;
	}
}

